Python3

您所在的位置:网站首页 python 查看包的路径 Python3

Python3

#Python3 | 来源: 网络整理| 查看: 265

1. 查看python路径终端输入命令:

whereis python

假设你的电脑上同时安装了python2和python3,可以使用使用以下命令分别查看其安装路径:

whereis python2 whereis python3

2.查看使用pip安装的软件包默认python3

pip list

python2查看pip安装的软件包名称及版本

python2 -m pip list

python3查看pip安装的软件包名称及版本

python3 -m pip list

同样也可以是用命令

pip freeze

pip list 和 pip freeze的区别可以参考:https://blog.csdn.net/vitaminc4/article/details/76576956

3.查看pip安装的软件包路径 

pip show logzero

结果:

--- Metadata-Version: 2.0 Name: logzero Version: 1.5.0 Summary: Robust and effective logging for Python 2 and 3 Home-page: https://github.com/metachris/logzero Author: Chris Hager Author-email: [email protected] License: MIT license Location: /root/.jumbo/lib/python2.7/site-packages Requires:

 



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3